﻿/*
 * Created by SharpDevelop.
 * User: think
 * Date: 2011/11/18
 * Time: 22:39
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;


/// <summary>
/// Description of MainForm.
/// </summary>
public partial class frmMain : BaseWinFrom
{
    public frmMain()
    {
        this.TopLevel = true;
        //
        // The InitializeComponent() call is required for Windows Forms designer support.
        //
        InitializeComponent();

        //
        // TODO: Add constructor code after the InitializeComponent() call.
        //
    }

    private void ttsmiLogin_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmLogin());
    }

    private void tsmiUser_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmUserList());
    }

    private void tsmiDiagnosis_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmDiagnosisList());
    }

    private void tsmiCaseList_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmDiagnosisList());
    }

    private void tsmiAdd_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmDiagnosis());
    }

    private void tsmiDrugsList_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmDrugsList());
    }

    private void helpToolStripMenuItem_Click(object sender, EventArgs e)
    {
        this.AddMdiChildren(new frmDrugsHelper(new TextBox()));
    }
}